{template paome_header}
<link rel="stylesheet" href="static/calendar/js/calendar.css" />
<script type="text/javascript" charset="utf-8" src="static/calendar/calendar.php"></script>
<style type="text/css">
    .bg{display:none;position:fixed;width:100%;height:100%;background:#000;z-index:2;top:0;left:0;opacity:0.7;}
</style>
<h4 style="padding-left:10px;;">
    <a href="?c=paome_index&a=getPaomeList"><span>赛季列表</span></a>
    >>
    <span>排名列表</span>
</h4>
<form class="form-horizontal" method="POST" action="?c=paome_rank&a=getRankList&paomeId={$paomeId}"  >
    <div class="control-group search-group">
        <label class="control-label" >俱乐部：</label>
        <div class="controls">
            <input type="text" value="{$name}" name="name" placeholder="俱乐部名称" />
        </div>
    </div>

    <div class="control-group search-group">
        <label class="control-label" >轮次：</label>
        <div class="controls">
            <select name="contestStatus" id="contestStatus">
                {loop $arrStatus $k $v}
                    <option value="{$v['id']}" {if $contestStatus == $v['id']}selected{/if} >{$v['name']}</option>
                {/loop}
            </select>
        </div>
    </div>

    <div class="control-group search-group">
        <label class="control-label" >排名类别：</label>
        <div class="controls">
            <select name="typeWd" id="typeWd">
                <option value="1" {if $typeWd == 1}selected{/if}>总里程榜</option>
                <option value="5" {if $typeWd == 5}selected{/if}>配速榜</option>
                <option value="10" {if $typeWd == 10}selected{/if}>人气榜</option>
                <option value="15" {if $typeWd == 15}selected{/if}>全员跑量榜</option>
            </select>
            <input class="btn" type="submit" value="查询" />
        </div>
    </div>

</form>

<div class="bs-docs-example table-align pt-15" style="clear:both;">
    <table class="table table-striped table-align">
        <thead>
        <tr>
            <th>排名</th>
            {if $typeWd==15 }
                <th>成员UID</th>
                <th>成员</th>
            {/if}
            <th>俱乐部</th>
            {if $typeWd==15 || $typeWd==1 }
            <th>跑量</th>
            {elseif $typeWd==5}
            <th>配速</th>
            {elseif $typeWd==10}
            <th>人气</th>
            {else}
            {/if}
        </tr>
        </thead>
        {if count($list)>0}
        <tbody>
        {loop $list $k $v}
            <tr>
                <td>{$v['rankNum']}</td>
                {if $typeWd==15}
                    <td>{$v['uid']}</td>
                    <td><img src="{$v['userHeader']}" style="width: 50px;height: 50px;" />{$v['userNickName']}</td>
                {/if}
                <td><img src="{$v['clubImage']}" style="width: 50px;height: 50px;" />{$v['clubName']}</td>
                {if $typeWd==15 || $typeWd==1}
                    <td>{$v['rankValue']}km</td>
                {else}
                    <td>{$v['rankValue']}</td>
                {/if}
            </tr>
        {/loop}
        <div id="res"></div>
        </tbody>
        {/if}
    </table>

</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}